package com.business.business.support.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class MyLogger {

    public static final Logger logger = LoggerFactory.getLogger(MyLogger.class);

    public static int flag = 2;

    public void info(String str){
        if(flag == 1){
            logger.info(str);
        }
    }

}
